home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wics.zip / DIAL.H < prev    next >
C/C++ Source or Header  |  1993-03-02  |  2KB  |  65 lines

  1. //==============================================================================================
  2. //
  3. //    Windows Interface Construction Set
  4. //    Version 1.00
  5. //
  6. //    DIAL.H - Dial Class Header File
  7. //    Copyright ⌐ 1993 by Microdyne Development Technologies
  8. //    All rights reserved.
  9. //==============================================================================================
  10.  
  11. #ifndef _DIAL_H
  12. #define _DIAL_H
  13.  
  14. #include <scrollba.h>
  15. #include <wics.h>
  16.  
  17. #pragma option -Vo-
  18. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  19. #pragma option -po-
  20. #endif
  21.  
  22. _CLASSDEF(TDial)
  23.  
  24. /* --------------------------------------------------------
  25.   TDial object
  26.   -------------------------------------------------------- */
  27.  
  28. class _EXPORT TDial : public TScrollBar
  29. {
  30. public:
  31.     int LineMagnitude, PageMagnitude;
  32.  
  33.     TDial(PTWindowsObject AParent, int AnId, int X, int Y, PTModule AModule = NULL);
  34.     TDial(PTWindowsObject AParent, int ResourceId, PTModule AModule = NULL);
  35.  
  36.     void GetRange(Rint LoVal, Rint HiVal);
  37.     int GetPosition();
  38.     void SetRange(int LoVal, int HiVal, BOOL fRedraw = FALSE);
  39.     void SetPosition(int ThumbPos);
  40.  
  41.     static PTStreamable build();
  42.  
  43. protected:
  44.     virtual LPSTR GetClassName() { return "DialClass"; }
  45.  
  46.     TDial(StreamableInit) : TScrollBar(streamableInit) {};
  47.     virtual void write (Ropstream os);
  48.     virtual Pvoid read (Ripstream is);
  49.  
  50. private:
  51.     virtual const Pchar streamableName() const { return "TDial"; }
  52. };
  53.  
  54. inline Ripstream operator >> ( Ripstream is, RTDial cl )  { return is >> (RTStreamable )cl; }
  55. inline Ripstream operator >> ( Ripstream is, RPTDial cl ) { return is >> (RPvoid)cl; }
  56. inline Ropstream operator << ( Ropstream os, RTDial cl )  { return os << (RTStreamable )cl; }
  57. inline Ropstream operator << ( Ropstream os, PTDial cl )  { return os << (PTStreamable )cl; }
  58.  
  59. #pragma option -Vo.
  60. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  61. #pragma option -po.
  62. #endif
  63.  
  64. #endif
  65.